// 2013-10-6上午10:35:55  net.betou.core.service.post.impl.PostTaskImpl.java

package net.betou.core.service.post.impl;

import net.betou.core.service.post.Task;

import org.springframework.core.task.TaskExecutor;

/**
 * 
 * @author 叶装装
 */
public class PostTaskImpl implements Task{
	
	private TaskExecutor taskExecutor;

	public PostTaskImpl( TaskExecutor taskExecutor ) {
		this.taskExecutor = taskExecutor;
	}

	public void addTask( Runnable runnable ) {
		taskExecutor.execute( runnable );
	}
}
